package bangbang.controller;

import bangbang.upanddown.FileUpload;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.File;

@Controller
@RequestMapping("Oos")
public class OosController {
    @Autowired
    private FileUpload fileUpload;

    @RequestMapping("upload")
    public String upload(){
        fileUpload.FileUpload(new File("E:\\4.jpg"),"bangbangyun");
        return "OK";
    }
}
